﻿using ReactiveUI;
using ReactiveUI.Fody.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hardware.Reactor.Base.Model
{
    /// <summary>
    /// 电机运作参数
    /// </summary>
    public class MotorModel : ReactiveObject
    {
        /// <summary>
        /// 转向地址
        /// </summary>
        [Reactive]
        public byte SwitchAddress { get; set; } = 0;
        /// <summary>
        /// 转速地址
        /// </summary>
        [Reactive]
        public byte SpeedAddress { get; set; } = 0;
        /// <summary>
        /// 是否运行中
        /// </summary>
        [Reactive]
        public bool IsRunning { get; set; } = false;
        /// <summary>
        /// 转速，默认200rpm
        /// </summary>
        public ushort RotateSpeed { get; set; } = 200;
    }
}
